package net.wofly.sale.commission.service;

import java.util.List;

import net.wofly.sale.commission.domain.SaleCommissionSum;

public interface ISaleCommissionSumService {

	/**
	 * 增加或修改
	 * 
	 * @param entity
	 * @return
	 */
	SaleCommissionSum save(SaleCommissionSum entity);

	/**
	 * 删除
	 * 
	 * @param entity
	 * @return
	 */
	void delete(SaleCommissionSum entity);

	/**
	 * 根据主键ID删除
	 * 
	 * @param key
	 * @return
	 */
	void delete(String key);

	/**
	 * 根据主键查询
	 * 
	 * @param key
	 * @return
	 */
	SaleCommissionSum findOne(String key);
	
	List<SaleCommissionSum> save(List<SaleCommissionSum> entityList) ;

	List<SaleCommissionSum> findBySumTimeAndSumDuration(Long sumTime, Integer sumDuration);
}
